package nl.grol.yakshop.dataImport;

import java.util.List;

import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(name="herd")
class LabYakHerd {
	private final List<LabYak> labyaks;
	
	/*
	 * Value object:
	 * cannot be instantiated from within business logic
	 * Only an importer can do so
	 */
	public LabYakHerd(@ElementList(name="yaks", inline=true, entry="labyak") List<LabYak> labyaks) {
		this.labyaks = labyaks;
	}

	@ElementList(name="labyaks", inline=true, entry="labyak")
	public List<LabYak> getLabYaks() {
		return labyaks;
	}
	
	
}
